const jwt = require('jsonwebtoken')
const secret = '123'
function setRefreshToken(data={}){
    return jwt.sign(data,secret,{expiresIn:60 * 60 * 24 * 7})
}
function setAccessToken(data={}){
    return jwt.sign(data,secret,{expiresIn:60 * 60 * 24 * 30})
}
module.exports = {
    secret,setAccessToken,setRefreshToken
}